import * as action from '../stoActions';
import * as interfaceUrl from '../interfaceUrl';
import {post} from "../stoActions";
import {FRIENDS, GROUPS, USER} from "../interfaceUrl";
export default {
    //传username给服务器
    USER({commit},params){
         return action.post(interfaceUrl.USER,params);
    },
    //通过传当前用户的user获取到除当前用户的其他用户信息
    FRIENDS({commit},params){
        return action.post(interfaceUrl.FRIENDS,params);
    },
    GROUPS({commit},params){
        return action.post(interfaceUrl.GROUPS,params);
    },
    MAPNAVI({commit},params){
        return action.get(interfaceUrl.MAPNAVI,params);
    },
    MAPDEST({commit},params){
        return action.get(interfaceUrl.MAPDEST,params);
    },
    DYNAMICROUTERS({commit},params){
        return action.post(interfaceUrl.DYNAMICROUTERS,params)
    }
}